跳到主要内容

Switch 语法

1 分钟阅读

开始

function checkQuestionType(type) {
switch (type) {
case "fill":
return "填空题";
case "single":
return "单选题";
case "multi":
return "多选题";
case "judge":
return "判断题";
case "essay":
return "问答题";
default:
return "未知题型";
}
}
评论
0条评论

添加新评论

昵称
邮箱
网址